#include <stdio.h>
#include "h/hotel.h"

int main(void)
{
    int night;
    double rate;
    int code;

    while ((code = menu()) != QUIT) {
        switch (code) {
            case 1:
                rate = HOTEL1;
                break;
            case 2:
                rate = HOTEL2;
                break;
            case 3:
                rate = HOTEL3;
                break;
            case 4:
                rate = HOTEL4;
                break;
        }

        printf("the price is an $%.2lf you choice hotel.\n", rate);

        night = getnight();

        showprice(night, rate);
    }

    printf("Thank you and goodbye.\n");

    return 0;
}
